package com.jufanshare.tokenjwt.common.constants;

/**
 * 公共常量
 * @author: tievd(zhangwenjun@tieserv.com)
 * @date: 2019年4月8日 上午9:16:15
 * @vesion: 1.0
 */
public class Constants {
	// ===============================标识返回实体==================================================
	/** 类型为机构 */
	public static final int ORGAN_TYPE_ORG = 1;
	/** 类型为小区 */
	public static final int ORGAN_TYPE_VILLAGE = 2;
	/** 类型为人员 */
	public static final int ORGAN_TYPE_PERSON = 3;
	/** 类型为设备 */
	public static final int ORGAN_TYPE_DEVICE = 3;
	// =================================================================================
	/** admin 登录id */
	public static final int USER_ID_ADMIN = 1;
	/** 默认相识度 */
	public static final int CONFIDENCE_DEFAULT = 60;
	// =================================================================================
	/** tcp心跳间隔 */
	public static final int IDELTIMEOUT = 120;
	public static final String SESSION_KEY = "account";
	public static final int TIME_OUT_NUM = 3;
	public static final String TIME_OUT_KEY = "timeout";
	public static final String SMOKE_DETECTOR = "smoke_detector";

	/**
	 * 报警盘告警内容
	 */
	public final static String ALARM_CONTENT_ALARMPANEL = "报警盘报警";

	public final static String COMMON_SPILT_STR = "@";

	/** 居住状态：入住 */
	public final static int LIVE_STATUS_IN = 0;
	/** 居住状态：注销 */
	public final static int LIVE_STATUS_OUT = 1;
	/** 居住状态：重新授权 */
	public final static int LIVE_STATUS_RETRY = 2;
	
	 /**
     * 微信人员id
     */
	public static final Integer WECHAT_USER_ID = -1;
	
	/** {@code 500 Server Error} (HTTP/1.0 - RFC 1945) */
    public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
    /** {@code 200 OK} (HTTP/1.0 - RFC 1945) */
    public static final Integer SC_OK_200 = 200;
    
    /** 图片来源 ftp */
    public static final Integer FILE_SOURCE_FTP = 1;
    /** 图片来源 fastDFS */
    public static final Integer FILE_SOURCE_FASTDFS = 2;
}
